package com.jchen.biz.service.impl;

import com.jchen.biz.entity.SeataTest;
import com.jchen.biz.mapper.SeataTestMapper;
import com.jchen.biz.service.FeignTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author jchen
 * @Date 2023/12/6 16:43
 */
@Service
public class FeignTestServiceImpl implements FeignTestService {

    @Autowired
    private SeataTestMapper seataTestMapper;

    @Override
    public String testFeiApi(String userId) {
        SeataTest seataTest = new SeataTest();
        seataTest.setId(1);
        seataTest.setName("diaomao");
        int i = 1/0;
        seataTestMapper.insertSelective(seataTest);
        return "123";
    }
}
